const express = require('express')
const router = express.Router()
const { db, genid } = require('../database/index')

// 测试
router.get('/test', async (req, res) => {
  sqlSelectStr = `SELECT * FROM managers`
  db.async(sqlSelectStr, {}).then((results) => {
    res.jgcl('管理员查询成功！', 200, { id: genid.NextId(), data: results })
  }, (err) => {
    res.jgcl('管理员查询失败！' + err, 404,)
  })
})



module.exports = router;